From 1d9dcd2a27736b83d20abc0111141fdd6bffde7e Mon Sep 17 00:00:00 2001 From: Shoubhit Dash Date: Fri, 6 Mar 2026 18:19:15 +0530 Subject: share: speed up share loads (#16165) --- packages/enterprise/src/routes/api/[...path].ts | 1 + 1 file changed, 1 insertion(+) (limited to 'packages/enterprise/src/routes/api/[...path].ts') diff --git a/packages/enterprise/src/routes/api/[...path].ts b/packages/enterprise/src/routes/api/[...path].ts index e77c00de9..f97788bd0 100644 --- a/packages/enterprise/src/routes/api/[...path].ts +++ b/packages/enterprise/src/routes/api/[...path].ts @@ -108,6 +108,7 @@ app validator("param", z.object({ shareID: z.string() })), async (c) => { const { shareID } = c.req.valid("param") + c.header("Cache-Control", "public, max-age=30, s-maxage=300, stale-while-revalidate=86400") return c.json(await Share.data(shareID)) }, ) -- cgit v1.2.3